package com.example.android_three.mvp.activity

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.android_three.mvp.entity.BaseEntity
import com.example.android_three.R
import com.example.android_three.mvp.control.LreControl
import com.example.android_three.mvp.presenter.LrePresenter
import com.jess.arms.base.BaseActivity
import com.jess.arms.di.component.AppComponent

@Route(path = "/app/mainActivity")
class MainActivity : BaseActivity<LrePresenter>(), LreControl.LreControlView {


    override fun setupActivityComponent(appComponent: AppComponent) {

    }

    override fun initView(savedInstanceState: Bundle?): Int {
        return R.layout.activity_app_main
    }

    /**
     * 开始请求数据
     */
    override fun initData(savedInstanceState: Bundle?) {

    }

    /**
     * 网络请求的数据
     */
    override fun onSuccess(data: BaseEntity) {

    }

    /**
     * 刷新数据
     */
    override fun onRefresh(data: BaseEntity) {

    }

    /**
     * 加载数据
     */
    override fun onLoading(data: BaseEntity) {

    }

    override fun showMessage(message: String) {

    }


}
